#include "Vector3.h"

#pragma once

class CUnit
{
private:
	int health;
	int damage;
	int detRadius;
	int speed;
	bool active;
	Vector3D pos;
	
public:
	enum State {
		S_ZERO,
		S_IDLE,
		S_ROAM,
		S_ATTACK,
		S_FLEE,
		S_CHARGE,
		S_GUARD,
		S_TOTAL
	};

	State state;

	CUnit(State state = S_ZERO);
	~CUnit();

	int GetHealth(void);
	int GetDamage(void);
	int GetDetRadius(void);
	int GetSpeed(void);
	bool GetActive(void);
	Vector3D GetPos(void);

	void SetHealth(int health);
	void SetDamage(int damage);
	void SetDetRadius(int detRadius);
	void SetSpeed(int speed);
	void SetActive(bool active);
	void SetPos(Vector3D pos);
};

